<template>
  <div class="avue-logo">
    <transition name="fade">
      <span v-if="getScreen(isCollapse)" class="avue-logo_subtitle" key="0">
        <!-- {{ website.logo }} -->
        <img src="@/assets/images/hny-collapse.png" alt="" class="avue-logo_img_collapse" @click="openHome">
      </span>
    </transition>
    <transition-group name="fade">
      <template v-if="getScreen(!isCollapse)">
        <!-- <span class="avue-logo_title" key="1">{{ website.indexTitle }} </span> -->
        <img src="@/assets/images/hny.png" alt="" class="avue-logo_img" @click="openHome">
      </template>
    </transition-group>
  </div>
</template>

<script>
import { mapGetters } from 'vuex';

export default {
  name: 'logo',
  data() {
    return {};
  },
  created() { },
  computed: {
    ...mapGetters(['isCollapse']),
  },
  methods: {
    openHome() {
      this.$router.push('/wel/index')
    }
  },
};
</script>
